import React from 'react';
import Client from '../Client_fetch';
function App2(props){
  const [state,setState]=React.useState({});
  return (
    <div>
    <button onClick={()=>{
      Client.get("rest/user/fadc2f97-a0b2-46fb-8222-0a397fc7ec52",(res)=>{
        console.log(res);
      },()=>{});
    }}>/user</button>
    <button onClick={()=>{
      Client.post("rest/user",{name:"hello"},(res)=>{
        console.log(res);
      },()=>{});
    }}>post</button>
    hello
    </div>
  );
}
export default App2;
